{{extend "layout.html"}}
<div class="post">
  <h1>
    <a href="/view/{{=entry.index}}" title="Permanent Link to {{=entry.title}}">{{=entry.title}}</a>
  </h1>
  <p class="date">{{=entry.datestr()}}</p>
  <div class="entry">
    {{Xml(entry.content)}}
  </div><!-- end entry -->
  {{if entry.entype == 'post':}}
  <p class="postmeta">Tags: {{for tag in entry.tags:}}<a href="/tag/{{=tag}}">{{=tag}}</a>{{pass}}</p>
  {{pass}}
</div><!-- end post -->

{{cmtcount = entry.comments.count()}}

  <h3 id="cmtcounts">
    {{if cmtcount == 0:}}
    No Response
    {{elif cmtcount == 1:}}
    1 Response
    {{else:}}
    {{=cmtcount}} Responses
    {{pass}} <!-- end if -->
    to {{=entry.title}}
  </h3>


  {{if cmtcount > 0:}}
  {{for n, comment in enumerate(entry.comments):}}
  <div class="comment">
    <p class="floor">{{=n+1}}</p>
    <p class="cmtauthor">
      {{if comment.site:}}
      <a href="{{=comment.site}}" rel="external nofollow">{{=comment.author}}</a>
      {{else:}}
      {{=comment.author}}
      {{pass}}
    </p>
    <p class="cmtdate"><a href="/view/{{=entry.index}}#comment-{{=comment.index}}" title="Permanent Link to this Comment">{{=comment.datestr()}}</a></p>
    {{=comment.content}}
  </div>
  {{pass}} <!-- end loop -->
  {{pass}} <!-- end if -->

  <h3 id="respond">Leave a Reply</h3>
  <form action="/view/{{=entry.index}}" method="post" id="commentform">
    {{Xml(cmtform.render_css())}}
    <div class="clear"></div>
  </form>
